package org.jianfa.homework.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("springcloud-service-code")
public interface CodeClient {

    @PostMapping("/code/validate")
    Integer validate(@RequestParam("email") String email,
                     @RequestParam("code") String code);
}
